﻿using FastIOC.Builder;
using FastIOC.Proxy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Test
{
    public class WebCatchProxy : ICatch
    {
        private DefaultIntercept _interceptor = new DefaultIntercept();
        private WebCatch _beproxy;
        public WebCatchProxy()
        {
            this._beproxy = (WebCatch)ContainerBuilder.GetInstance().ResolveAsClassProxyModel(typeof(WebCatch));
        }
        public virtual void Catch(string text)
        {
            object[] parameters = new object[]
		{
			text
		};
            this._interceptor.Before(this._beproxy, "Catch", parameters);
            DateTime now = DateTime.Now;
            this._beproxy.Catch(text);
            DateTime now2 = DateTime.Now;
            object result = null;
            this._interceptor.After(this._beproxy, "Catch", result, now, now2);
        }
        public virtual void UnCatch()
        {
            object[] parameters = new object[0];
            this._interceptor.Before(this._beproxy, "UnCatch", parameters);
            DateTime now = DateTime.Now;
            this._beproxy.UnCatch();
            DateTime now2 = DateTime.Now;
            object result = null;
            this._interceptor.After(this._beproxy, "UnCatch", result, now, now2);
        }
        public virtual string SaveCatch()
        {
            object[] parameters = new object[0];
            this._interceptor.Before(this._beproxy, "SaveCatch", parameters);
            DateTime now = DateTime.Now;
            string arg_3B_0 = this._beproxy.SaveCatch();
            DateTime now2 = DateTime.Now;
            object obj = arg_3B_0;
            this._interceptor.After(this._beproxy, "SaveCatch", obj, now, now2);
            return (string)obj;
        }
    }

}
